package cn.seaboot.admin.core.bean;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * POJO
 * 横向关注点 [t_sys_aspect]
 *
 * @author ChenSS on 2018/6/20.
 */
@Schema(description = "横向关注点 [t_sys_aspect] 实体类")
public class Aspect implements Serializable {

    private static final long serialVersionUID = -6093276457994188580L;
    /**
     * ID
     */
    @NotNull
    @Schema(description = "ID")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long id;
    /**
     * 地址的哈希码
     */
    @NotNull
    @Schema(description = "地址的哈希码")
    private Integer hashCode;
    /**
     * 地址
     */
    @NotNull
    @Schema(description = "地址")
    private String servletPath;
    /**
     * 请求方式
     */
    @NotNull
    @Schema(description = "请求方式")
    private String requestMethod;
    /**
     * 归属
     */
    @NotNull
    @Schema(description = "归属")
    private String controller;
    /**
     * 函数
     */
    @NotNull
    @Schema(description = "函数")
    private String method;
    /**
     * 描述
     */
    @NotNull
    @Schema(description = "描述")
    private String description;
    /**
     * 禁用脱敏功能
     */
    @NotNull
    @Schema(description = "禁用脱敏功能")
    private Boolean disabled;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Integer getHashCode() {
        return hashCode;
    }

    public void setHashCode(Integer hashCode) {
        this.hashCode = hashCode;
    }

    public String getServletPath() {
        return servletPath;
    }

    public void setServletPath(String servletPath) {
        this.servletPath = servletPath;
    }

    public String getRequestMethod() {
        return requestMethod;
    }

    public void setRequestMethod(String requestMethod) {
        this.requestMethod = requestMethod;
    }

    public String getController() {
        return controller;
    }

    public void setController(String controller) {
        this.controller = controller;
    }

    public String getMethod() {
        return method;
    }

    public void setMethod(String method) {
        this.method = method;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Boolean getDisabled() {
        return disabled;
    }

    public void setDisabled(Boolean disabled) {
        this.disabled = disabled;
    }
}
